﻿
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        <script src="Scripts/jquery-2.1.1.min.js"></script>
        <script src="Scripts/bootstrap.min.js"></script>
        <script src="Scripts/jquery-ui-1.8.24.js"></script>
        <script src="Scripts/jquery-2.1.1.js"></script>
        <script src="Scripts/jquery-ui-1.8.24.min.js"></script>
        

            @Styles.Render("~/Scripts/css/bootstrap-theme.min.css")
            @Styles.Render("~/Scripts/css/bootstrap.css")
            @Styles.Render("~/Scripts/css/bootstrap.min.css")
            @Styles.Render("~/Scripts/css/bootstrap-theme.css")
            @Scripts.Render("~/bundles/modernizr")
            @Scripts.Render("~/Scripts/jquery-2.1.1.min.js")
            @Scripts.Render("~/Scripts/bootstrap.min.js")
            @Scripts.Render("~/Scripts/bootstrap.js")
            @Scripts.Render("~/Scripts/jquery-ui-1.8.24.js")
            @Scripts.Render("~/Scripts/jquery-ui-1.8.24.min.js")
            @Scripts.Render("~/Scripts/jquery-2.1.1.js")
            @Scripts.Render("//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js")



            </head>
        <body>
                <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <img src="~/Images/LOGO.gif">
                        @Html.ActionLink("Technical Management Program", "Index", "Home", new object { }, new { style = "font-size:18px;", @class = "navbar-brand" })
                    </div>
                    <div class="navbar-collapse collapse">
                        @if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "1")
                        { 
                        <ul class="nav navbar-nav navbar-right">
                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">หน้าหลัก <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="@Url.Action("Create", "MRestoreToAdmin")">แจ้งซ่อม</a></li>
                                    <li><a href="@Url.Action("IndexUser", "MRestoreToAdmin")">ข้อมูลแจ้งซ่อม</a></li>
                                    @*<li>@Html.ActionLink("รายงานแจ้งซ่อม", "Index", "Home")</li>*@
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">ผู้ดูแลระบบ <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="@Url.Action("Index", "MRestoreToAdmin")"> ข้อมูลแจ้งซ่อมทั้งหมด </a></li>
                                    <li>@Html.ActionLink("ข้อมูลออกซ่อม", "Index", "MRestoreToRepair")</li>
                                    <li>@Html.ActionLink("บันทึกการซ่อม", "Create", "MRSaveRestore")</li>
                                    <li>@Html.ActionLink("ข้อมูลบันทึกการซ่อม", "Index", "MRSaveRestore")</li>
                                </ul>
                            </li>
                            @*<li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">รายงานต่างๆ <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li>@Html.ActionLink("รายงานแจ้งซ่อมทั้งหมด", "Index", "Home")</li>
                                    <li>@Html.ActionLink("รายงานสรุปค่าใช้จ่าย", "Index", "Home")</li>
                                    <li>@Html.ActionLink("รายงานตรวจเช็ครถและบำรุงรักษา", "Index", "Home")</li>
                                    <li>@Html.ActionLink("รายงานผลการประเมิน", "Index", "Home")</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">กำหนดแผน <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li>@Html.ActionLink("แผนตรวจการเช็ครถ", "Index", "Home")</li>
                                </ul>
                            </li>*@
                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">ตั้งค่า <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li>@Html.ActionLink("เพิ่มข้อมูลรถยนต์", "Index", "CAddCar")</li>
                                    <li>@Html.ActionLink("เช็คระยะต่างๆ", "Index", "CCheckPlan")</li>
                                    <li>@Html.ActionLink("ซ่อมระบบต่างๆ", "Index", "CCategoryRepair")</li>
                                    <li>@Html.ActionLink("ผู้ขายผู้ให้บริการ", "Index", "COutsource")</li>
                                    <li>@Html.ActionLink("สถานะรถยนต์เข้าซ่อม", "Index", "CStatusRepair")</li>
                                    <li>@Html.ActionLink("รุ่นรถยนต์", "Index", "CModelCar")</li>
                                    <li>@Html.ActionLink("ประเภทรถยนต์", "Index", "CStageCar")</li>
                                    <li>@Html.ActionLink("ขนาดยาง", "Index", "CRoueSize")</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">กำหนดสิทธิ <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li>@Html.ActionLink("ลงทะเบียน", "Index", "UserLogin")</li>
                                    <li>@Html.ActionLink("ผู้ใช้งาน", "Index", "CFEmployee")</li>
                                    <li>@Html.ActionLink("กลุ่มผู้ใช้งาน", "Index", "CFGroupPM")</li>
                                    <li>@Html.ActionLink("ตำแหน่ง", "Index", "CDivision")</li>
                                    <li>@Html.ActionLink("สาขา", "Index", "CFBranch")</li>
                                </ul>
                            </li>
                            <li>
                                @if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "1")
                                {
                                    @Html.ActionLink("(Log Out)", "Login", "Home", routeValues: null, htmlAttributes: new { style = "font-size:18px;", @class = "btn btn-default btn-lg active" })
                                }
                            </li>

                        </ul>
                        }
                        else
                        {
                            <ul class="nav navbar-nav navbar-right">
                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">หน้าหลัก <b class="caret"></b></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="@Url.Action("Create", "MRestoreToAdmin")">แจ้งซ่อม</a></li>
                                    <li><a href="@Url.Action("IndexUser", "MRestoreToAdmin")">ข้อมูลแจ้งซ่อม</a></li>
                                    <li>@Html.ActionLink("รายงานแจ้งซ่อม", "Index", "Home")</li>
                                </ul>
                            </li>
                            <li>
                                @if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "2")
                                {
                                @Html.ActionLink("(Log Out)", "Login", "Home", routeValues: null, htmlAttributes: new { style = "font-size:18px;", @class = "btn btn-default btn-lg active" })
                                }
                            </li>

                        </ul>
                        }
                        @*<ul class="nav navbar-nav navbar-right">
                            <li>@Html.ActionLink("หน้าหลัก", "Index", "Home", new object { }, new { style = "font-size:18px;" })</li>
                            <li>
                                @if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "1") 
                                { 
                                    @Html.ActionLink("Profile", "Index", "Home",  routeValues: null, htmlAttributes: new { style = "font-size:18px;" })
                                }
                            </li>
                            <li>
                                @if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "1" )
                                {
                                    @Html.ActionLink("(Log Out)", "Login", "Home", routeValues: null, htmlAttributes: new { style = "font-size:18px;", @class = "btn btn-default btn-lg active" })
                                }
                                else if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "2")
                                {
                                     @Html.ActionLink("(Log Out)", "Login", "Home", routeValues: null, htmlAttributes: new { style = "font-size:18px;", @class = "btn btn-default btn-lg active" })
                                }
                           </li>
                        </ul>*@
                    </div>
                </div>
            </nav>
            <div style="height:60px"></div>
            @if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "1")
{
        @*@Html.ActionLink("(Log Out)", "Login", "Home", routeValues: null, htmlAttributes: new { style = "font-size:18px;", @class = "btn btn-danger" })*@
    <div class="row row-offcanvas row-offcanvas-left" id="mains">
        @Html.Partial("_Menu")
        <div class="col-sm-9 col-md-10 main">
            <p class="visible-xs">
                <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas"><i class="glyphicon glyphicon-chevron-left"></i></button>
            </p>
            <div class="row placeholders">
                @*<form class="form-horizontal well">*@
                    @RenderSection("Home", required: false)
                    @RenderSection("SentTo", required: false)
                    @RenderSection("Detail", required: false)
                    @RenderSection("Settings", required: false)
                    @*</form>*@
                </div>
            </div>
        </div>
}
            else if (Session["LogedId"] != null && Session["PermissionGrop"].ToString() == "2")
            {
        <div class="row row-offcanvas row-offcanvas-left" id="mains">
                @Html.Partial("_MenuUser")
                <div class="col-sm-9 col-md-10 main">
                    <p class="visible-xs">
                        <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas"><i class="glyphicon glyphicon-chevron-left"></i></button>
                    </p>
                    @RenderSection("Home", required: false)
                    @RenderSection("SentTo", required: false)
                    @RenderSection("Detail", required: false)
                    @RenderSection("Settings", required: false)
                </div>
            </div>

}
                            @RenderBody()
                            <script src="~/Scripts/bootstrap.min.js"></script>
                            <script src="~/Scripts/jquery.min.js"></script>
                            <script src="Scripts/jquery-ui-1.8.24.js"></script>
                            <script src="Scripts/jquery-2.1.1.js"></script>
                            <script src="Scripts/jquery-ui-1.8.24.min.js"></script>
                            <script type="text/javascript">
                                $(".AA").hide();
                                $(".AB").hide();
                                $(".AC").hide();
                                $(".AD").hide();
                                $(".AE").hide();
                                $(".AF").hide();
                                $("#Col1").click(function () {
                                    $(".AA").toggle();
                                });

                                $("#Col2").click(function () {
                                    $(".AB").toggle();
                                });

                                $("#Col3").click(function () {
                                    $(".AC").toggle();
                                });

                                $("#Col4").click(function () {
                                    $(".AD").toggle();
                                });

                                $("#Col5").click(function () {
                                    $(".AE").toggle();
                                });

                                $("#Col6").click(function () {
                                    $(".AF").toggle();
                                });
                            </script>
                            @Styles.Render("~/Scripts/css/bootstrap-theme.min.css")
                            @Styles.Render("~/Scripts/css/bootstrap.css")
                            @Styles.Render("~/Scripts/css/bootstrap.min.css")
                            @Styles.Render("~/Scripts/css/bootstrap-theme.css")
                            @Scripts.Render("~/bundles/modernizr")
                            @Scripts.Render("~/Scripts/jquery-2.1.1.js")
                            @Scripts.Render("~/Scripts/jquery-2.1.1.min.js")
                            @Scripts.Render("~/Scripts/bootstrap.min.js")
                            @Scripts.Render("~/Scripts/bootstrap.js")
                            @Scripts.Render("~/Scripts/jquery-ui-1.8.24.js")
                            @Scripts.Render("~/Scripts/jquery-ui-1.8.24.min.js")
                            @Scripts.Render("//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js")
                            @Scripts.Render("~/bundles/jquery")
                            @RenderSection("scripts", required: false)
                            @RenderSection("styles", required: false)
        </body>
        </html>
